package com.itcast.tanhuaserver.utils;

import java.lang.annotation.*;


/**
 *  标记此注解的方法返回结果进行缓存
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Cache {
    /**
     * 缓存时间.默认60s
     * @return
     */
    String time() default "60";
}
